<h2>Listado de peticiones</h2>

<div class="actionBar">
[<?php echo CHtml::link('Nueva peticion',array('create')); ?>]
[<?php echo CHtml::link('Administrar peticiones',array('admin')); ?>]
</div>

<div class="pager"><?php $this->widget('CLinkPager',array('pages'=>$pages)); ?></div>

<?php foreach($models as $n=>$model): ?>
<table class="dataGrid">
<tr>
	<th class="label" width="150"><?php echo CHtml::encode($model->getAttributeLabel('name')); ?>
</th>
    <td><?php echo CHtml::link(CHtml::encode($model->name), array('show', 'id'=>$model->id, 'return_page'=>$pages->getCurrentPage()+1)); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('profession')); ?>
</th>
    <td><?php echo CHtml::encode($model->profession); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('state')); ?>
</th>
    <td><?php echo CHtml::encode($model->stateName); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('sent')); ?>
</th>
    <td><?php echo CHtml::encode($model->hasTShirt); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('found')); ?>
</th>
    <td><?php echo CHtml::encode($model->foundJob); ?>
</td>
</tr>
</table>
<br />
<?php endforeach; ?>

<div class="pager"><?php $this->widget('CLinkPager',array('pages'=>$pages)); ?></div>